package net.csdn.business.discuss.api.model.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @ClassName ChangePinDTO
 * @Description TODO
 * @Author zhangyl
 * @Date 2023/7/18 16:05
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ChangePinDTO implements Serializable {
    /** id */
    @NotBlank(message = "id不能为空")
    private String id;

    /** 是否置顶： 0-否; 1-是 */
    @NotNull(message = "isPin不能为空")
    @Range(min = 0, max = 1, message = "isPin不合法")
    private Integer isPin;

    /** 当前操作人 */
    @NotBlank(message = "currUserId不能为空")
    private String currUserId;
}
